End.

nginx gzip 压缩 json文件

核心gzip_types 加上 application/json

gzip on;
# gzip_min_length  1k;
gzip_buffers     4 16k;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_types text/plain text/css application/javascript application/json application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
End.